﻿namespace Matrix.MaKaYunShang.Model
{
    // 返回结果
    /// <summary>
    /// 返回实体结果 
    /// </summary>
    public class Result
    {
        /// <summary>
        /// 是否执行成功（成功为true，失败为false）
        /// </summary>
        public bool Status { get; set; }
        /// <summary>
        /// 状态代码
        /// </summary>
        public int StatusCode { get; set; }
        /// <summary>
        /// 执行时消息
        /// </summary>
        public string Message { get; set; }
    }

    /// <summary>
    /// 返回实体结果
    /// </summary>
    /// <typeparam name="T">返回可变数据</typeparam>
    public class Result<T> : Result
    {
        /// <summary>
        /// 返回实体结果
        /// </summary>
        public T Data { get; set; }
    }
}